/*
 * Copyright (c) 2007 Compl Yue Still, All Rights Reserved.
 */

package hbi.wire.java.host;

import java.io.IOException;
import java.nio.ByteBuffer;

class FP64 implements DataTag
{

    private Object value = null;

    public Object getTagValue()
    {
        return value;
    }

    public void reset()
    {
        value = null;
    }

    public boolean processIncomingData(ByteBuffer buffer) throws IOException
    {
        if (buffer.remaining() < 8) return false;
        value = Double.valueOf(buffer.getDouble());
        return true;
    }

}
